import axios from '@/libs/api.request'

export class ProductDeliveryApi {
  // 获取待分配项目
  static GetToAllocationList (params) {
    return axios.request({
      url: '/ProductDelivery/GetToAllocationList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
  // 获取需要交付项目
  static getListToDelivery (params) {
    return axios.request({
      url: '/ProductDelivery/GetListToDelivery',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取项目需交付信息
  static getToDelivery (params) {
    return axios.request({
      url: '/ProductDelivery/GetToDelivery',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取项目经理/助手
  static getServers (params) {
    return axios.request({
      url: '/ProductDelivery/GetServers',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 分配负责助理
  static addServer (params) {
    return axios.request({
      url: '/ProductDelivery/AddServer',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 添加交付完成信息
  static addResult (params) {
    return axios.request({
      url: '/ProductDelivery/AddResult',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  //  获取项目交付信息
  static getDelivery (params) {
    return axios.request({
      url: '/ProductDelivery/GetDelivery',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  //  获取交付完成项目
  static getListDelivery (params) {
    return axios.request({
      url: '/ProductDelivery/GetListDelivery',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  //  添加课程反馈
  static addFeedback (params) {
    return axios.request({
      url: '/ProductDelivery/AddFeedback',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取课后报告
  static addReport (params) {
    return axios.request({
      url: '/Attachment/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 下载课后报告
  static downloadReport (params) {
    return axios.request({
      url: '/Attachment/Download',
      method: 'get',
      params: params
    })
  }

  // 删除课后报告
  static deleteReport (params) {
    return axios.request({
      url: '/Attachment/Delete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  //  获取课程项目评价反馈
  static getFeedBack (params) {
    return axios.request({
      url: '/ProductDelivery/GetFeedBack',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  //  交付完成项目导出
  static export (params) {
    return axios.request({
      url: '/ProductDelivery/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 待分配项目撤销
  static CancelAssigned (params) {
    return axios.request({
      url: '/ProductDelivery/CancelAssigned',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 项目交付撤销
  static ProjectCancel (params) {
    return axios.request({
      url: '/ProductDelivery/Cancel',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出项目交付
  static ExportProductDeliveryList (params) {
    return axios.request({
      url: '/ProductDelivery/ExportProductDeliveryList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 项目交付列表
  static GetProductDeliveryList (params) {
    return axios.request({
      url: '/ProductDelivery/GetProductDeliveryList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
